package sctu.edu.java.year2016.team01.chenhong.day20160616.chapter15_1;

/**
 * Created by Administrator on 2016/6/16.
 */
public class Print extends Thread {
    public void run() {
        while (true) {
            Print print = new Print();

            try {
                print.sleep(100);
                System.out.println("线程休眠100毫秒后打印的语句");
            } catch (InterruptedException e) {
                e.printStackTrace();
            }

        }
    }


    public static void main(String[] args) {

        System.out.println("启动线程");
        new Print().start();

    }
}